package ui.xmlVisualization;

import edu.uci.ics.jung.graph.impl.DirectedSparseEdge;

/**
 * 
 * @author huangcd
 * 
 */
public class XMLEdge extends DirectedSparseEdge
{

    protected int edgeID;
    protected int fromID;
    protected int toID;

    public XMLEdge(XMLVertex from, XMLVertex to)
    {
        super(from, to);
    }

    @Override
    public String toString()
    {
        return ((XMLVertex) getSource()).toString(false) + "->"
                + ((XMLVertex) getDest()).toString(false);
    }

    public int getEdgeID()
    {
        return edgeID;
    }

    public int getFromID()
    {
        return fromID;
    }

    public int getToID()
    {
        return toID;
    }

    public void setEdgeID(int edgeID)
    {
        this.edgeID = edgeID;
    }

    public void setFromID(int fromID)
    {
        this.fromID = fromID;
    }

    public void setToID(int toID)
    {
        this.toID = toID;
    }
}
